#!/bin/sh -e
# Copyright 2018 Google LLC
#
# Use of this source code is governed by an MIT-style
# license that can be found in the LICENSE file or at
# https://opensource.org/licenses/MIT.

adb=$1
shift
name=$1
shift
base=$(basename $name)

$adb push $name /data/local/tmp/$base > /dev/null || (echo failed: $adb push ; false)
$adb shell /data/local/tmp/$base "$@"
